<?php 
/**
 * ITkezhan
 *
 * 杜康出品，必属精品
 *
 * @package		ITkezhan路口文件
 * @author		ExpressionEngine Dev Team
 * @copyright	Copyright (c) 2008 - 2011, EllisLab, Inc.
 * @license		http://www.m135.com/license.html
 * @link		http://www.m135.com
 * @since		Version 1.0
 * @filesource
 */


/*
 *---------------------------------------------------------------
* 系统文件夹名
*---------------------------------------------------------------
*
* 代表ITkezhan 框架 文件夹名为
* 
* 
*
*/
$system_path = 'system';

/*
 *---------------------------------------------------------------
* 应用文件夹名
*---------------------------------------------------------------
*
*代表ITkezhan 框架 衍生 应用文件夹名为
*
*/
$application_folder = 'application';



	
	include_once 'application/config/config.php';
	$url_Client = $_SERVER[PHP_SELF];
	echo $url_Client;
	echo "<br/>";
	$url_SCRIPT_NAME =__FILE__;
	echo $url_SCRIPT_NAME;
	echo dirname($url_SCRIPT_NAME);
	echo "<br/>";
	echo PATHINFO_BASENAME;
	$url_array=explode('/', $url_Client);
	$len = count($url_array);
	echo $len;
	echo "<br/>";
	print_r($url_array);
	if($len >4)
	{
		//http://localhost/ITkezhan_Opensource/index.php/conUser/login?Cmd=%271%27
		switch ($len)
		{
			default:
				$root['dir'] = $url_array[1];
				$root['dftpage'] = $url_array[2];
				$root['method'] = $url_array[3];
				
				if(empty($url_array[4]))
				{
					$root['action'] = $config['dft_method'];
				}
				else
				{
					$root['action'] = $url_array[4];
				}
				break;
		}
		echo "<br>";
		print_r($root);
	}
	else
	{
		
	}
	//print_r($url_array);